#include "fieldcallback.h"

fieldCallBack::fieldCallBack()
{

}
void fieldCallBack::getAngleScale(Data &alldata)
{

    vPAngleScale.resize(alldata.ldata.size());

    osg::ref_ptr<osg::Vec3Array> vCenterVertex = new osg::Vec3Array;
    vCenterVertex->resize(alldata.vTriIndex.size()/3);
    unsigned int j = 0;
    for(unsigned int i=0;i<alldata.vTriIndex.size()/3;i=i+3,j++)
    {
       vCenterVertex->at(j).x() = alldata.vMeshVertex[alldata.vTriIndex[i]] +
               alldata.vMeshVertex[alldata.vTriIndex[i+1]] +
               alldata.vMeshVertex[alldata.vTriIndex[i+2]];
    }




}
